#ifndef __MODELEDITOR_SPLASHSCREEN_H
#define __MODELEDITOR_SPLASHSCREEN_H

#include "../../JuceLibraryCode/JuceHeader.h"

class ModelEditorSplashScreen :	public SplashScreen
{
public:
	ModelEditorSplashScreen() 
		: splash_screen( ImageCache::getFromMemory(BinaryData::SplashScreen_jpg, BinaryData::SplashScreen_jpgSize) )
	{
		splash_screen_text.setJustification(Justification::centred);
        splash_screen_text.append(L"OyEngine's Model Editor", Font (18.0f, Font::plain), Colours::white);
		
	}
	~ModelEditorSplashScreen() {}

	int getWidth()		{ return splash_screen.getWidth(); }
	int getHeight()		{ return splash_screen.getHeight(); }

	void paint( Graphics & g )
	{
        g.drawImageWithin(splash_screen, 0, 0, getWidth(), getHeight(),
                           RectanglePlacement::centred | RectanglePlacement::onlyReduceInSize,
                           false);

        splash_screen_text.draw(g, juce::Rectangle<int>(0, getHeight()-80, getWidth(), 100).toFloat());
	}


private:
	Image splash_screen;
    AttributedString splash_screen_text;
};


#endif